import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SPlayerMarry
    
    export  class SPlayerMarry extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPlayerMarry();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.recordId);
            arg1.writeInt(this.status);
            this.mate.__write(arg1);
            arg1.writeInt(this.heartLock);
            arg1.writeDate(this.createDt);
            arg1.writeDate(this.divorceApplyDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.recordId = arg1.readInt();
            this.status = arg1.readInt();
            this.mate = new SPublicMiniPlayer();
            this.mate.__read(arg1);
            this.heartLock = arg1.readInt();
            this.createDt = arg1.readDate();
            this.divorceApplyDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=188;

        public /* var */recordId: int;

        public /* var */status: int;

        public /* var */mate: SPublicMiniPlayer;

        public /* var */heartLock: int;

        public /* var */createDt: Date;

        public /* var */divorceApplyDt: Date;

        public static /* var */_regist: SPlayerMarry;
    }

            SPlayerMarry._regist = new SPlayerMarry(true);
        